package com.xingkeduo.pojo.utils;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.TreeSet;
import java.util.stream.Collectors;

/**
 * @Description:
 * @Author:gaozifeng
 * @Date 2019/5/18 13:13
 **/
public class LambdaUtils {


    public static void deWeighting(List<Long> list){
        list.stream().collect(Collectors.collectingAndThen(
                Collectors.toCollection(() -> new TreeSet<>(
                        Comparator.comparing(o -> o.longValue()))), ArrayList::new));


    }
}
